package com.example.projectcode.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.projectcode.model.Choice;
import com.example.projectcode.vo.UpdateChoiceVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ChoiceMapper extends BaseMapper<Choice> {
    List<Choice> selectAllChoices(@Param("Testpointid") Integer testPointid,@Param("C_type") String questionCategory);


    Choice selectChoice(@Param("Testpointid") Integer testPointid,
                        @Param("C_type") String questionCategory,
                        @Param("order")  Integer order);

    int updateChoiceById(UpdateChoiceVo updateChoiceVo);
}
